package no.uio.inf5750.wsclient.dao.mockup;

import java.util.Vector;

import no.uio.inf5750.wsclient.dao.PeriodDAO;
import no.uio.inf5750.wsclient.model.Dataset;
import no.uio.inf5750.wsclient.model.OrganisationUnit;
import no.uio.inf5750.wsclient.model.Period;

public class MockupPeriodDAO implements PeriodDAO {

    Vector periods;

    public MockupPeriodDAO() {
        periods = new Vector();
        for (int i = 0; i < 10; ++i) {
            Period period = new Period();
            period.setName("Period name" + String.valueOf(i));
            periods.addElement(period);
        }
    }

    public Vector listPeriods(OrganisationUnit orgUnit, Dataset dataset) {
        return periods;
    }

}
